import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import {startSystem} from '@/assets/js/http'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      beforeEnter: async (to, from, next) => {
        await startSystem()
        next()
      }
    },

  ]
})
